package com.gxa.modules.entity;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.GeneratedValue;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import java.util.Date;
import java.math.BigDecimal;
/** 
 * @team mackie Studio 
 * @Author kk 
 * @Date 2023-03-17 20:15:22 
 */
@Entity
@Data
@TableName("crm_appendix" )
public class CrmAppendix  implements Serializable {

	private static final long serialVersionUID =  4115385488421376725L;

	/**
	 * 附件ID
	 */
	@Id
	@TableId(value = "appendix_id", type = IdType.AUTO)
	private Integer appendixId;

	/**
	 * 附件标题
	 */
   	@TableField("appendix_name" )
	private String appendixName;

	/**
	 * 文件大小
	 */
   	@TableField("appendix_size" )
	private BigDecimal appendixSize;

	/**
	 * 附件存储地址
	 */
   	@TableField("appendix_location" )
	private String appendixLocation;

	/**
	 * 备注
	 */
   	@TableField("appendix_remark" )
	private String appendixRemark;

	/**
	 * 业务员id
	 */
   	@TableField("employee_id" )
	private Integer employeeId;

	/**
	 * 上传时间
	 */
	@JsonFormat(pattern="yyyy-MM-dd hh:mm:ss",timezone="GMT+8")
   	@TableField("upload_time" )
	private Date uploadTime;

	/**
	 * 附件类型
	 */
   	@TableField("appendix_type" )
	private String appendixType;

	/**
	 * 附件关联的信息id
	 */
   	@TableField("appendix_relevance_id" )
	private Integer appendixRelevanceId;

	/**
	 * 删除状态（1：已删除，2：未删除）
	 */
   	@TableField("appendix_status" )
	private Integer appendixStatus;
}
